///*******************************************************************************
// * PROPRIETARY/CONFIDENTIAL
// * Copyright (c) 2017 MMIA
// * All rights reserved. This medium contains confidential and proprietary
// * source code and other information which is the exclusive property of
// * MMIA. None of these materials may be used,
// * disclosed, transcribed, stored in a retrieval system, translated into
// * any other language or other computer language, or transmitted in any form
// * or by any means (electronic, mechanical, photocopied, recorded or
// * otherwise) without the prior written permission of MMIA.
// *******************************************************************************/
//package ltTest.config;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.data.mongodb.MongoDbFactory;
//import org.springframework.data.mongodb.core.MongoTemplate;
//import org.springframework.data.mongodb.core.convert.DefaultDbRefResolver;
//import org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper;
//import org.springframework.data.mongodb.core.convert.MappingMongoConverter;
//import org.springframework.data.mongodb.core.mapping.MongoMappingContext;
//
///**
// * @Class_name:MongoConfig
// * @Description:
// * @Date:2017-06-08 11:04
// * @Author:Lirui
// * @Modified:
// * @Version:V1.0.0
// */
//@Configuration
//public class MongoConfig {
//
//    @Autowired
//    MongoDbFactory mongoDbFactory;
//
//    public @Bean MongoTemplate mongoTemplate() throws Exception {
//        //remove _class
//        MappingMongoConverter converter = new MappingMongoConverter(new DefaultDbRefResolver(mongoDbFactory), new MongoMappingContext());
//        converter.setTypeMapper(new DefaultMongoTypeMapper(null));
//        MongoTemplate mongoTemplate = new MongoTemplate(mongoDbFactory, converter);
//        return mongoTemplate;
//    }
//}
